﻿using System.Linq;
using Core.Contract.DataContract;
using Data.DAO;
using www.Models;

namespace Data.BO
{
    public class MenuRefBO//:BaseBO<MenuDAO,RelaxMenu>
    {
        #region value
        private readonly MenuRefDAO _menuDao = new MenuRefDAO();
        #endregion

        #region Hàm lấy dữ liệu

        public IQueryable<RelaxMenuDataContract> GetAllMenuDataContracts()
        {
            return _menuDao.GetAllMenu();
        }

        public IQueryable<RelaxMenuDataContract> GetMenuId()
        {
            return _menuDao.GetMenuId();
        }

        #endregion

        #region Hàm Add
        public void Add(MENU_REF menu)
        {
            _menuDao.Add(menu);
        }
        #endregion

        #region Hàm Update
        public void Update(MENU_REF menu)
        {
            _menuDao.Update(menu);
        }
        

        #endregion

        #region Hàm Delete
        public void Delete(int iId)
        {
            _menuDao.Delete(iId);
        }
        #endregion

    }
}
